Repository navigation
Pin InferenceX and run AgentX with Magpie-managed serving - #114
Conversation
Resolve declared InferenceX launchers and persist structured server overrides. Require matching launch evidence before accepting candidate results.
Resolve unregistered AMD single-node SGLang/vLLM models through the declared InferenceX generic capability. Bind model config metadata and context to recipe identity, preserve registered recipe ambiguity checks, and expose verified custom result metadata.
|
@haofrank Thanks for incorporating profiling specific aspects as we discussed. I am reviewing in detail, but posted a comment that might require some changes |
|
Thanks @devalshahamd updated, please review again~ |
|
GPU validation completed on 2026-10-05 for Magpie
Scope/limits: this is a real diagnostic replay and basic PyTorch trace test, not a canonical performance baseline or a full Hyperloom optimizer run. Enhanced annotations were not enabled: the stock image lacks SGLang |
|
AgentX server/benchmark integration and repeated trace capture have been exercised through Hyperloom.
GPU results above are from Magpie Profiling validates capture only: selected-rank quality checks reported blocked / warn; other ranks received file-inventory checks. Full TraceLens/Roofline analysis has not run, and profiled results cannot supply KEEP evidence. Latest-head native GPU and ordinary benchmark/GSM8K validation remain incomplete, as does the full Hyperloom optimization loop (Coordinator/KEEP/GEAK). |
|
Tested profiling of workloads with Magpie, overall the profiling seems to be functioning well. |
Magpie can run single-node AgentX benchmarks with SGLang or vLLM, locally or in Docker, without Slurm. Magpie manages server startup, readiness, profiling and cleanup. InferenceX/AIPerf replays agent sessions and measures them; Hyperloom remains responsible for optimization and candidate selection.
Each concurrency point starts a fresh server. Its warmup, measurement and repeated profile captures share that server. Server arguments, environment tuning and verified source changes reach the launched process, with a receipt recording what actually ran.
Example
CONCcontrols active agent session trees; choose a recipe-supported value. Request lengths come from the trace dataset. This example requests three diagnostic captures of 20 server execution steps each. The initial delay starts after warmup; later intervals start after the previous trace finishes flushing. Capture counts are capped to the measurement window. Disable profiling for canonical performance comparisons: profiled results are diagnostic and cannot supply KEEP evidence.The example uses basic tracing. Enhanced shape/roofline analysis requires a compatible instrumented runtime and passing trace-quality checks.
Compatibility
New installations pin InferenceX to
408c015; existing checkouts retain their version. Legacy paths and the newinferencex-e2e/layout both work. The generic packaged throughput client uses an isolated Python 3.12 / Transformers 5 environment; these fixes leave the native AgentX/AIPerf runtime unchanged. The validation harness protects GSM8K's existing evaluation environment with framework constraints and version checks. Built-in tokenizer/trust hooks prevent Hyperloom compatibility preparation from rewriting the audited package.Validation
Latest Magpie
cf80532, paired with Hyperloom3b6c517, passed focused CPU tests and source/wheel immutability checks. Magpie's full Linux Python 3.10 and 3.12 CI passed.Canonical GPU baseline/candidate and ProfileExecutor capture integration passed on earlier Hyperloom
80c589d/ Magpie938bfd7. The candidate added--disable-cuda-graph, was slower and was not promoted. Profile captures completed, but embedded selected-rank quality verdicts were blocked/warn: too few step annotations for capture 1, and an unmodelled splitter fallback for capture 2. Certificates were not independently re-read from sidecars. The bypass-only probe forecast was not exercised. Full Hyperloom TraceLens/Roofline analysis was not run. The warning verdict leaves usability unverified, not ruled out.Latest-head ordinary benchmark + GSM8K remains unverified: the bounded attempt timed out without a PASS artifact or final report, and resource constraints prevented a retry. This does not establish a functional defect. The post-attempt audit found all 87 package files unchanged. Our test containers were removed and all three allocations were cancelled; artifacts were retained. Latest-head native GPU, full Coordinator, KEEP selection and GEAK execution are not claimed. Hyperloom #1675 remains Draft with main conflicts and this unmerged dependency.
Detailed results, warnings and retained artifacts.